package com.two.sso.feign;




import com.two.common.entity.Permission;
import com.two.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "two-orderSystem-service-permission")
public interface PermissionOpenFeign {
    @GetMapping("/api/permission/permission/selectByUsername")
    public User findByUsername(@RequestParam String username);

    @GetMapping("/api/permission/permission/selectByUserId")
    List<Permission> findPermissionByUserid(@RequestParam Integer userid);
}
